home *** CD-ROM | disk | FTP | other *** search
- on LegalButtonHandler
- global gRollover
- set gRollover to 1
- set the visible of sprite 14 to 0
- set lButtonUpName to the name of cast the castNum of sprite the clickOn
- set lButtonDownName to the number of cast "Red"
- set the castNum of sprite the clickOn to the number of cast lButtonDownName
- updateStage()
- repeat while the stillDown = 1
- if rollOver(the clickOn) = 1 then
- set gRollover to 1
- set the castNum of sprite the clickOn to the number of cast lButtonDownName
- updateStage()
- next repeat
- end if
- set gRollover to 0
- set the castNum of sprite the clickOn to the number of cast lButtonUpName
- updateStage()
- end repeat
- if gRollover = 0 then
- exit
- end if
- set the castNum of sprite the clickOn to the number of cast lButtonUpName
- set the visible of sprite 14 to 1
- updateStage()
- end
-
- on LegalButtonHandler2
- global gRollover
- set gRollover to 1
- set the visible of sprite 17 to 0
- set lButtonUpName to the name of cast the castNum of sprite the clickOn
- set lButtonDownName to the number of cast "Red2"
- set the castNum of sprite the clickOn to the number of cast lButtonDownName
- updateStage()
- repeat while the stillDown = 1
- if rollOver(the clickOn) = 1 then
- set gRollover to 1
- set the castNum of sprite the clickOn to the number of cast lButtonDownName
- updateStage()
- next repeat
- end if
- set gRollover to 0
- set the castNum of sprite the clickOn to the number of cast lButtonUpName
- updateStage()
- end repeat
- if gRollover = 0 then
- exit
- end if
- set the castNum of sprite the clickOn to the number of cast lButtonUpName
- set the visible of sprite 17 to 1
- updateStage()
- end
-
- on delaySomeTicks howMany
- startTimer()
- repeat while the timer < howMany
- nothing()
- end repeat
- end
-
- on checkToGo movieType, whichMovie
- global gFlashCount, gNextMovie
- delaySomeTicks(15)
- if gFlashCount = 1 then
- set gNextMovie to whichMovie
- if movieType = "DIR" then
- go("black")
- else
- if movieType = "EXE" then
- go("Black2")
- else
- go("Quit!")
- end if
- end if
- end if
- end
-
- on blackFrame
- repeat with x = 1 to 48
- set the locV of sprite x to -500
- end repeat
- puppetTransition(50, 0, 12)
- updateStage()
- puppetTransition(0)
- end
-